home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / network / ncsasock / rexec.h < prev    next >
Text File  |  1996-07-05  |  835b  |  41 lines

  1. /*
  2.  * BSD-style socket emulation library for the Mac
  3.  * Original author: Tom Milligan
  4.  * Current author: Charlie Reiman - creiman@ncsa.uiuc.edu
  5.  *
  6.  * This source file is placed in the public domian.
  7.  * Any resemblance to NCSA Telnet, living or dead, is purely coincidental.
  8.  *
  9.  *      National Center for Supercomputing Applications
  10.  *      152 Computing Applications Building
  11.  *      605 E. Springfield Ave.
  12.  *      Champaign, IL  61820
  13.  */
  14.  
  15. /*
  16.  * REXECPORT should be passed as the second parameter to rexec (512)
  17.  *
  18.  * Remember to provide an stderr (fd2p) socket if you want to use
  19.  * rexecerr
  20.  */
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. int rexec(
  27.     char **ahost,
  28.     Int4 inport,
  29.     char *user,
  30.     char *passwd,
  31.     char *cmd,
  32.     int *fd2p);
  33.     
  34. int rexecerr(Int4 sock,char *str,Int4 strln);
  35.  
  36. #define REXECPORT    512    
  37.  
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41.